{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post" style="margin-left: 50px">
    <input type="hidden" name="id" value="{$data.id}" />
    {:token()}
    <div class="layui-form-item">
        <label>用户Id : {$data.id}</label>

    </div>

    <div class="layui-form-item">
        <label >抖音号 : {$data.dy_code}</label>

    </div>
    <div class="layui-form-item">
        <label >真实姓名 : {$data.real_name}</label>

    </div>


    <div class="layui-form-item">
        <label >身份证号 : {$data.identity_code}</label>
    </div>

    <div class="layui-form-item">
        <div  onclick="showReason()">
            <label >审核：</label>
            <input type="radio" name="is_auth" checked  value="2" title="通过" >
            <input type="radio" name="is_auth" value="3"  title="不通过">
        </div>
    </div>
    <div class="layui-form-item" style="display: none" id="reasonShow">
        <div>
            <input type="text" id="reason" name="reason"  autocomplete="off" placeholder="不通过的原因" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>


{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});

function showReason(){
    var status = $("input[name='status']:checked").val()
    if(status == 2){
        $('#reasonShow').hide()
        $('#reason').val('')
    }else {
        $('#reasonShow').show()
    }

}

</script>
{/block}